package com.dzl.fee.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.fee.pojo.WelfareFeeOrder;
import com.dzl.fee.pojo.query.WelfareFeeOrderQuery;
import com.dzl.fee.pojo.vo.WelfareFeeOrderVo;
import com.dzl.fee.pojo.vo.WelfareFeeSalesCustomersNameVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 业务员订单表(WelfareFeeOrder)表数据库访问层
 *
 * @author wangjian
 * @date 2021-08-03 15:23:37
 */
@Repository
public interface WelfareFeeOrderMapper extends BaseMapper<WelfareFeeOrder> {

    /**
     * 获取业务员订单列表
     * @date 2021/8/5 0005 15:37
     * @author wangjian
     * @param query 查询条件
     * @return java.util.List<com.dzl.feeSalesOrder.pojo.vo.WelfareFeeOrderVo>
     */
    List<WelfareFeeOrderVo> getFeeOrderList(WelfareFeeOrderQuery query);

    /**
     * 修改订单总金额、回款金额和未回款金额
     * @date 2021/8/25 0025 15:57
     * @author wangjian
     * @param vo 金额信息
     * @return java.lang.Integer
     */
    Integer updateAmount(WelfareFeeOrderVo vo);

    /**
     * 查询业务员订单的业务员名称和客户名称
     * @date 2021/9/30 15:07
     * @author caobucao
     * @param feeOrderId 业务员订单id
     * @return com.dzl.fee.pojo.vo.WelfareFeeSalesCustomersNameVo
     */
    WelfareFeeSalesCustomersNameVo selectSalesCustomersNameVoByFeeOrderId(@Param("feeOrderId") Integer feeOrderId);
}